#!usr/bin/python
# -*- coding: UTF-8 -*-

a = list()
print(a)

b = 'I love fish.'
print(b)

b = list(b)
print(b)

c = (1, 1, 2, 3, 5, 8, 13, 21, 34)
c = list(c) #将元组变成列表
print('c', c)

d = max(1, 2, 3, 4, 5)
print(d)

numbers = [2, 32, 21, 211, 212, 23, 54]
e = max(numbers)
print('e', e)
e = min(numbers)
print('e', e)
numbers.append('a')

chars = '01234343687'
f = min(chars)
print('f', f)

temple1 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
g = max(temple1)
print('g', g)

temple2 = (3.2, 2.14, 4.52)
h = sum(temple2)
print('h', h)

print('numbers', numbers)
i = numbers.pop()
print('i', i)

j = sum(numbers)
print('j', j)

k = sum(numbers, 8)
print('k', k)

print('numbers', numbers)

l = sorted(numbers)
print('numbers', numbers)
print('l', l)

m = reversed(numbers)
print('m', m)

m = list(reversed(numbers))
print('m', m)

m = enumerate(numbers)
print('m', m)

m = list(enumerate(numbers)) #加了索引的元组
print('m', m)

a = [1, 2, 3, 4, 5, 6, 7, 8]
b = [4, 5, 6, 7, 8]
c = zip(a, b)
d = list(c)
print('a', a)
print('b', b)
print('c', c)
print('d', d)
